#!/usr/bin/env python
# -*- coding: utf-8 -*-

def sortArray(array1, array2):
    for item in array2:
        array1.append(item)

    array1.sort()

    return array1

if __name__ == '__main__':
    a1 = [2, 1, -1]
    a2 = [9, 2,4]
    print sortArray(a1, a2)
